package com.danco.training.bookshop.entity.storage;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.danco.training.bookshop.entity.Book;

public class BookStorage implements Serializable {


	
	/**
	 * 
	 */
	private static final long serialVersionUID = -869184003490432336L;
	private List<Book> books;
	private static BookStorage bookStorageInstance; 

	private BookStorage() {

		this.books = new ArrayList<Book>();

	}

	public List<Book> getBooks() {
		return books;
	}

	public void setBooks(List<Book> books) {
		this.books = books;
	}

	public static BookStorage getBookStorageInstance(){
		if(bookStorageInstance == null){
			bookStorageInstance = new BookStorage();
		}
		return bookStorageInstance;
	}

}
